<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<title>订单管理</title>

		<meta name="keywords" content="Bootstrap模版,Bootstrap模版下载,Bootstrap教程,Bootstrap中文" />
		<meta name="description" content="站长素材提供Bootstrap模版,Bootstrap教程,Bootstrap中文翻译等相关Bootstrap插件下载" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />

		<!-- basic styles -->

		<link href="assets/css/bootstrap.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="assets/css/font-awesome.min.css" />

		<!--[if IE 7]>
		  <link rel="stylesheet" href="assets/css/font-awesome-ie7.min.css" />
		<![endif]-->

		<!-- page specific plugin styles -->

		<link rel="stylesheet" href="assets/css/jquery-ui-1.10.3.full.min.css" />
		<link rel="stylesheet" href="assets/css/datepicker.css" />
		<link rel="stylesheet" href="assets/css/ui.jqgrid.css" />

		<!-- fonts -->

		<link rel="stylesheet" href="http//fonts.googleapis.com/css?family=Open+Sans:400,300" />

		<!-- ace styles -->

		<link rel="stylesheet" href="assets/css/ace.min.css" />
		<link rel="stylesheet" href="assets/css/ace-rtl.min.css" />
		<link rel="stylesheet" href="assets/css/ace-skins.min.css" />

		<!--[if lte IE 8]>
		  <link rel="stylesheet" href="assets/css/ace-ie.min.css" />
		<![endif]-->

		<!-- inline styles related to this page -->

		<!-- ace settings handler -->

		<script src="assets/js/ace-extra.min.js"></script>

		<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->

		<!--[if lt IE 9]>
		<script src="assets/js/html5shiv.js"></script>
		<script src="assets/js/respond.min.js"></script>
		<![endif]-->
	</head>

	<body>
		<div class="navbar navbar-default" id="navbar">
			<script type="text/javascript">
				try{ace.settings.check('navbar' , 'fixed')}catch(e){}
			</script>

			<div class="navbar-container" id="navbar-container">
				<div class="navbar-header pull-left">
					<a href="#" class="navbar-brand">
						<small>
							<i class="icon-leaf"></i>
							花店管理系统
						</small>
					</a><!-- /.brand -->
				</div><!-- /.navbar-header -->

				<!-- /.navbar-header -->
			</div><!-- /.container -->
		</div>

		<div class="main-container" id="main-container">
			<script type="text/javascript">
				try{ace.settings.check('main-container' , 'fixed')}catch(e){}
			</script>

			<div class="main-container-inner">
				<a class="menu-toggler" id="menu-toggler" href="#">
					<span class="menu-text"></span>
				</a>

				<div class="sidebar" id="sidebar">
					<script type="text/javascript">
						try{ace.settings.check('sidebar' , 'fixed')}catch(e){}
					</script>

					<div class="sidebar-shortcuts" id="sidebar-shortcuts">
						<div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">
							<button class="btn btn-success">
								<i class="icon-signal"></i>
							</button>

							<button class="btn btn-info">
								<i class="icon-pencil"></i>
							</button>

							<button class="btn btn-warning">
								<i class="icon-group"></i>
							</button>

							<button class="btn btn-danger">
								<i class="icon-cogs"></i>
							</button>
						</div>

						<div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
							<span class="btn btn-success"></span>

							<span class="btn btn-info"></span>

							<span class="btn btn-warning"></span>

							<span class="btn btn-danger"></span>
						</div>
					</div><!-- #sidebar-shortcuts -->

					<ul class="nav nav-list">
						<li class="active">
							<a href="home.html">
								<i class="icon-dashboard"></i>
								<span class="menu-text"> 控制台 </span>
							</a>
						</li>
					
					
						<li>
							<a href="#" class="dropdown-toggle">
								<i class="icon-list"></i>
								<span class="menu-text"> 管理 </span>
					
								<b class="arrow icon-angle-down"></b>
							</a>
					
							<ul class="submenu">
								<li>
									<a href="tables.html">
										<i class="icon-double-angle-right"></i>
										商品库存管理
									</a>
								</li>
					
								<li>
									<a href="jqgrid.html">
										<i class="icon-double-angle-right"></i>
										订单管理
									</a>
								</li>
							</ul>
						</li>
					
						<li>
							<a href="#" class="dropdown-toggle">
								<i class="icon-edit"></i>
								<span class="menu-text"> 添加 </span>
					
								<b class="arrow icon-angle-down"></b>
							</a>
					
							<ul class="submenu">
								<li>
									<a href="form-elements.html">
										<i class="icon-double-angle-right"></i>
										添加商品库存
									</a>
								</li>
					
								<li>
									<a href="wysiwyg.html">
										<i class="icon-double-angle-right"></i>
										添加订单
									</a>
								</li>
							</ul>
						</li>
					
					
						<li>
							<a href="#" class="dropdown-toggle">
								<i class="icon-tag"></i>
								<span class="menu-text"> 更多页面 </span>
					
								<b class="arrow icon-angle-down"></b>
							</a>
					
							<ul class="submenu">
								<li>
									<a href="login.html">
										<i class="icon-double-angle-right"></i>
										登录 &amp; 注册
									</a>
								</li>
							</ul>
						</li>
					</ul><!-- /.nav-list -->

					<div class="sidebar-collapse" id="sidebar-collapse">
						<i class="icon-double-angle-left" data-icon1="icon-double-angle-left" data-icon2="icon-double-angle-right"></i>
					</div>

					<script type="text/javascript">
						try{ace.settings.check('sidebar' , 'collapsed')}catch(e){}
					</script>
				</div>

				<div class="main-content">
					<div class="breadcrumbs" id="breadcrumbs">
						<script type="text/javascript">
							try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
						</script>

						<ul class="breadcrumb">
							<li>
								<i class="icon-home home-icon"></i>
								<a href="#">首页</a>
							</li>

							<li>
								<a href="#">管理</a>
							</li>
							<li class="active">订单管理</li>
						</ul><!-- .breadcrumb -->

						<!-- #nav-search -->
					</div>

					<div class="page-content">
						<!-- /.page-header -->
						<div class="page-header">
							<h1>
								订单表
							</h1>
						</div>
						<div class="row">
							<div class="col-xs-12">
								<!-- PAGE CONTENT BEGINS -->

								<table id="grid-table"></table>

								<div id="grid-pager"></div>

								<script type="text/javascript">
									var $path_base = "/";//this will be used in gritter alerts containing images
								</script>

								<!-- PAGE CONTENT ENDS -->
							</div><!-- /.col -->
						</div><!-- /.row -->
				</div><!-- /.main-content -->

				<div class="ace-settings-container" id="ace-settings-container">
					<div class="btn btn-app btn-xs btn-warning ace-settings-btn" id="ace-settings-btn">
						<i class="icon-cog bigger-150"></i>
					</div>

					<div class="ace-settings-box" id="ace-settings-box">
						<div>
							<div class="pull-left">
								<select id="skin-colorpicker" class="hide">
									<option data-skin="default" value="#438EB9">#438EB9</option>
									<option data-skin="skin-1" value="#222A2D">#222A2D</option>
									<option data-skin="skin-2" value="#C6487E">#C6487E</option>
									<option data-skin="skin-3" value="#D0D0D0">#D0D0D0</option>
								</select>
							</div>
							<span>&nbsp; Choose Skin</span>
						</div>

						<div>
							<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-navbar" />
							<label class="lbl" for="ace-settings-navbar"> Fixed Navbar</label>
						</div>

						<div>
							<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-sidebar" />
							<label class="lbl" for="ace-settings-sidebar"> Fixed Sidebar</label>
						</div>

						<div>
							<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-breadcrumbs" />
							<label class="lbl" for="ace-settings-breadcrumbs"> Fixed Breadcrumbs</label>
						</div>

						<div>
							<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-rtl" />
							<label class="lbl" for="ace-settings-rtl"> Right To Left (rtl)</label>
						</div>

						<div>
							<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-add-container" />
							<label class="lbl" for="ace-settings-add-container">
								Inside
								<b>.container</b>
							</label>
						</div>
					</div>
				</div><!-- /#ace-settings-container -->
			</div><!-- /.main-container-inner -->

			<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
				<i class="icon-double-angle-up icon-only bigger-110"></i>
			</a>
		</div><!-- /.main-container -->

		<!-- basic scripts -->

		<!--[if !IE]> -->

		<script src="http//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>

		<!-- <![endif]-->

		<!--[if IE]>
<script src="http//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<![endif]-->

		<!--[if !IE]> -->

		<script type="text/javascript">
			window.jQuery || document.write("<script src='assets/js/jquery-2.0.3.min.js'>"+"<"+"/script>");
		</script>

		<!-- <![endif]-->

		<!--[if IE]>
<script type="text/javascript">
 window.jQuery || document.write("<script src='assets/js/jquery-1.10.2.min.js'>"+"<"+"/script>");
</script>
<![endif]-->

		<script type="text/javascript">
			if("ontouchend" in document) document.write("<script src='assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
		</script>
		<script src="assets/js/bootstrap.min.js"></script>
		<script src="assets/js/typeahead-bs2.min.js"></script>

		<!-- page specific plugin scripts -->

		<script src="assets/js/date-time/bootstrap-datepicker.min.js"></script>
		<script src="assets/js/jqGrid/jquery.jqGrid.min.js"></script>
		<script src="assets/js/jqGrid/i18n/grid.locale-en.js"></script>

		<!-- ace scripts -->

		<script src="assets/js/ace-elements.min.js"></script>
		<script src="assets/js/ace.min.js"></script>

		<!-- inline scripts related to this page -->

		<script type="text/javascript">

		    
		    jQuery(function($) {
		        var grid_selector = "#grid-table";
		        var pager_selector = "#grid-pager";
				
				var grid_data =
				[ 
				    {id:"HD202301010001", title:"2023-01-01", type:"张三", author:"13812345678", date:"北京市朝阳区某小区", summary:"已支付"},
				    {id:"HD202301010002", title:"2023-01-01", type:"李四", author:"13912345678", date:"北京市海淀区某大厦", summary:"未支付"},
				    {id:"HD202301010003", title:"2023-01-01", type:"王五", author:"13712345678", date:"上海市浦东新区某商场", summary:"已发货"},
				    {id:"HD202301010004", title:"2023-01-01", type:"赵六", author:"13612345678	", date:"广州市天河区某写字楼", summary:"已退款"},
				    {id:"HD202301010006", title:"2023-01-02", type:"钱七", author:"13512345678", date:"成都市锦江区某小区", summary:"已发货"},
				    {id:"HD202301020001", title:"2023-01-02", type:"李女士", author:"13923456789", date:"上海市徐汇区某公寓", summary:"已支付"},
				    {id:"HD202301020002", title:"2023-01-02", type:"王先生", author:"13823456789", date:"北京市东城区某写字楼", summary:"已发货"},
				    {id:"HD202301020003", title:"2023-01-02", type:"赵小姐", author:"13723456789", date:"广州市越秀区某商场", summary:"已退款"},
				    {id:"HD202301020004", title:"2023-01-02", type:"孙先生", author:"13623456789", date:"成都市青羊区某小区", summary:"已发货"},
				    {id:"HD202301020005", title:"2023-01-02", type:"张女士", author:"13523456789", date:"深圳市南山区某别墅", summary:"已发货"},
				    {id:"HD202301020006", title:"2023-01-02", type:"陈先生", author:"13423456789", date:"南京市鼓楼区某大厦", summary:"已支付"},
				    {id:"HD202301020007", title:"2023-01-02", type:"林小姐", author:"13323456789", date:"武汉市江汉区某小区", summary:"已发货"},
				    {id:"HD202301020008", title:"2023-01-02", type:"黄先生", author:"13223456789", date:"长沙市岳麓区某写字楼", summary:"已支付"},
				    {id:"HD202301020009", title:"2023-01-02", type:"谢女士", author:"13123456789", date:"杭州市西湖区某公寓", summary:"已支付"},
				    {id:"HD202301020010", title:"2023-01-02", type:"钟先生", author:"13023456789", date:"郑州市中原区某商场", summary:"已支付"},
				    {id:"HD202301030001", title:"2023-01-03", type:"王十八", author:"13812345679", date:"上海市黄浦区某小区", summary:"已发货"},
				    {id:"HD202301030002", title:"2023-01-03", type:"李十九", author:"13912345679", date:"北京市西城区某大厦", summary:"已发货"},
				    {id:"HD202301030003", title:"2023-01-03", type:"王二十", author:"13712345679", date:"广州市白云区某商场", summary:"已发货"},
				    {id:"HD202301030004", title:"2023-01-03", type:"李二一", author:"13612345679", date:"成都市武侯区某小区", summary:"已支付"},
				    {id:"HD202301030005", title:"2023-01-03", type:"王二二", author:"13512345679", date:"深圳市罗湖区某别墅", summary:"已退款"},
				    {id:"HD202301030006", title:"2023-01-03", type:"李二三", author:"13412345679", date:"南京市玄武区某大厦", summary:"已退款"},
				    {id:"HD202301030007", title:"2023-01-03", type:"张二四", author:"13312345679", date:"武汉市江夏区某小区", summary:"已支付"},
				];
		    
		        jQuery(grid_selector).jqGrid({
		            data: grid_data,
		            datatype: "local",
		            height: 350,
		            colNames:[' ', '订单编号', '日期', '客户姓名', '电话', '地址', '订单状态'],
		            colModel:[
		                {name:'myac',index:'', width:80, fixed:true, sortable:false, resize:false,
		                    formatter:'actions', 
		                    formatoptions:{
								keys:true,
		                        editformbutton:true, 
		                        editOptions:{
									onEdit:function(rowid) {
										// 自定义编辑逻辑
										console.log("Edit row: " + rowid);
		                            },
		                            onSuccess:function(response) {
		                                return true;
		                            },
		                            url: 'clientArray'
		                        },
		                        delOptions:{
		                          onClick: function(rowid) {
		                            // 在这里添加删除行的逻辑
		                            // 例如，使用 confirm 弹窗确认删除
		                            if (confirm('确定要删除这条记录吗？')) {
		                               var grid = jQuery(grid_selector).jqGrid('getGridParam');
									   jQuery(grid_selector).jqGrid('delRowData', rowid);
		                            }
		                          }
		                        }
		                    }
		                },
		                {name:'id',index:'id', width:120, sorttype:"int", editable: true},
		                {name:'title',index:'title', width:90, editable: true, editoptions:{size:"20",maxlength:"30"}},
		                {name:'type',index:'type', width:100, editable: true},
		                {name:'author',index:'author', width:100, editable: true},
		                {name:'date',index:'date', width:130, editable:true, sorttype:"date",unformat: pickDate},
		                {name:'summary',index:'summary', width:170, sortable:false,editable: true,edittype:"textarea", editoptions:{rows:"2",cols:"10"}} 
		            ], 
		    
		            viewrecords : true,
		            rowNum:10,
		            rowList:[10,20,30],
		            pager : pager_selector,
		            altRows: true,
		            
		            multiselect: true,
		            multiboxonly: true,
		    
		            loadComplete : function() {
		                var table = this;
		                setTimeout(function(){
		                    styleCheckbox(table);
		                    updateActionIcons(table);
		                    updatePagerIcons(table);
		                    enableTooltips(table);
		                }, 0);
		            },
		    
		            editurl: 'clientArray', // 使用 'clientArray' 处理客户端操作
		            caption: "订单列表",
		    
		            autowidth: true
		        });
		    
		        function aceSwitch( cellvalue, options, cell ) {
		            setTimeout(function(){
		                $(cell) .find('input[type=checkbox]')
		                        .wrap('<label class="inline" />')
		                    .addClass('ace ace-switch ace-switch-5')
		                    .after('<span class="lbl"></span>');
		            }, 0);
		        }
		    
		        function pickDate( cellvalue, options, cell ) {
		            setTimeout(function(){
		                $(cell) .find('input[type=text]')
		                        .datepicker({format:'yyyy-mm-dd' , autoclose:true}); 
		            }, 0);
		        }
		    
		        jQuery(grid_selector).jqGrid('navGrid',pager_selector,
		            {   
		                edit: true,
		                editicon : 'icon-pencil blue',
		                add: true,
		                addicon : 'icon-plus-sign purple',
		                del: true,
		                delicon : 'icon-trash red',
		                search: true,
		                searchicon : 'icon-search orange',
		                refresh: true,
		                refreshicon : 'icon-refresh green',
		                view: true,
		                viewicon : 'icon-zoom-in grey',
		            },
		            {
		                recreateForm: true,
		                beforeShowForm : function(e) {
		                    var form = $(e[0]);
		                    form.closest('.ui-jqdialog').find('.ui-jqdialog-titlebar').wrapInner('<div class="widget-header" />')
		                    style_edit_form(form);
		                }
		            },
		            {
		                closeAfterAdd: true,
		                recreateForm: true,
		                viewPagerButtons: false,
		                beforeShowForm : function(e) {
		                    var form = $(e[0]);
		                    form.closest('.ui-jqdialog').find('.ui-jqdialog-titlebar').wrapInner('<div class="widget-header" />')
		                    style_edit_form(form);
		                }
		            },
		            {
		                recreateForm: true,
		                beforeShowForm : function(e) {
		                    var form = $(e[0]);
		                    if(form.data('styled')) return false;
		                    
		                    form.closest('.ui-jqdialog').find('.ui-jqdialog-titlebar')
		                    .wrapInner('<div class="widget-header" />')
		                    style_delete_form(form);
		    
		                    form.data('styled', true);
		                },
		                onClick : function(e) {
		                }
		            },
		            {
		                recreateForm: true,
		                afterShowSearch: function(e){
		                    var form = $(e[0]);
		                    form.closest('.ui-jqdialog').find('.ui-jqdialog-titlebar')
		                    .wrapInner('<div class="widget-header" />')
		                    style_search_form(form);
		                },
		                afterRedraw: function(){
		                    style_search_filters($(this));
		                },
		                multipleSearch: true,
		            },
		            {
		                recreateForm: true,
		                beforeShowForm: function(e){
		                    var form = $(e[0]);
		                    form.closest('.ui-jqdialog').find('.ui-jqdialog-titlebar')
		                    .wrapInner('<div class="widget-header" />')
		                }
		            }
		        )
		    
		        function style_edit_form(form) {
		            form.find('input[name=sdate]').datepicker({format:'yyyy-mm-dd' , autoclose:true})
		            form.find('input[name=stock]')
		                    .addClass('ace ace-switch ace-switch-5').after('<span class="lbl"></span>');
		    
		            var buttons = form.next().find('.EditButton .fm-button');
		            buttons.addClass('btn btn-sm').find('[class*="-icon"]').remove();
		            buttons.eq(0).addClass('btn-primary').prepend('<i class="icon-ok"></i>');
		            buttons.eq(1).prepend('<i class="icon-remove"></i>')
		    
		            buttons = form.next().find('.navButton a');
		            buttons.find('.ui-icon').remove();
		            buttons.eq(0).append('<i class="icon-chevron-left"></i>');
		            buttons.eq(1).append('<i class="icon-chevron-right"></i>');       
		        }
		    
		        function style_delete_form(form) {
		            var buttons = form.next().find('.EditButton .fm-button');
		            buttons.addClass('btn btn-sm').find('[class*="-icon"]').remove();
		            buttons.eq(0).addClass('btn-danger').prepend('<i class="icon-trash"></i>');
		            buttons.eq(1).prepend('<i class="icon-remove"></i>')
		        }
		    
		        function style_search_filters(form) {
		            form.find('.delete-rule').val('X');
		            form.find('.add-rule').addClass('btn btn-xs btn-primary');
		            form.find('.add-group').addClass('btn btn-xs btn-success');
		            form.find('.delete-group').addClass('btn btn-xs btn-danger');
		        }
		        function style_search_form(form) {
		            var dialog = form.closest('.ui-jqdialog');
		            var buttons = dialog.find('.EditTable')
		            buttons.find('.EditButton a[id*="_reset"]').addClass('btn btn-sm btn-info').find('.ui-icon').attr('class', 'icon-retweet');
		            buttons.find('.EditButton a[id*="_query"]').addClass('btn btn-sm btn-inverse').find('.ui-icon').attr('class', 'icon-comment-alt');
		            buttons.find('.EditButton a[id*="_search"]').addClass('btn btn-sm btn-purple').find('.ui-icon').attr('class', 'icon-search');
		        }
		        
		        function beforeDeleteCallback(e) {
		            var form = $(e[0]);
		            if(form.data('styled')) return false;
		    
		            form.closest('.ui-jqdialog').find('.ui-jqdialog-titlebar')
		            .wrapInner('<div class="widget-header" />')
		            style_delete_form(form);
		    
		            form.data('styled', true);
		        }
		        
		        function beforeEditCallback(e) {
		            var form = $(e[0]);
		            form.closest('.ui-jqdialog').find('.ui-jqdialog-titlebar')
		            .wrapInner('<div class="widget-header" />')
		            style_edit_form(form);
		        }
		    
		    
		        function styleCheckbox(table) {
		        }
		    
		        function updateActionIcons(table) {
		        }
		        
		        function updatePagerIcons(table) {
		            var replacement = 
		            {
		                'ui-icon-seek-first' : 'icon-double-angle-left bigger-140',
		                'ui-icon-seek-prev' : 'icon-angle-left bigger-140',
		                'ui-icon-seek-next' : 'icon-angle-right bigger-140',
		                'ui-icon-seek-end' : 'icon-double-angle-right bigger-140'
		            };
		            $('.ui-pg-table > tbody > tr > .ui-pg-button > .ui-icon').each(function(){
		                var icon = $(this);
		                var $class = $.trim(icon.attr('class').replace('ui-icon', ''));
		                
		                if($class in replacement) icon.attr('class', 'ui-icon '+replacement[$class]);
		            })
		        }
		    
		        function enableTooltips(table) {
		            $('.navtable .ui-pg-button').tooltip({container:'body'});
		            $(table).find('.ui-pg-div').tooltip({container:'body'});
		        }
		    
		        $(document).one('ajaxloadstart.page', function(e) {
		            $(grid_selector).jqGrid('GridUnload');
		            $('.ui-jqdialog').remove();
		        });
		    });
		</script>
	<div style="display:none"><script src='http//v7.cnzz.com/stat.php?id=155540&web_id=155540' language='JavaScript' charset='gb2312'></script></div>
</body>
</html>
